package com.oig.common.module;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.Size;
import java.util.List;

@Schema
@Data
public class ValidListDto<T> {

    @Valid
    @Size(min = 1,message = "至少一个")
    private List<T> list;

}
